
<%@ page import="feedbox.Administrador" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'administrador.label', default: 'Administrador')}" />
        <title><g:message code="default.list.label" args="[entityName]" /></title>
    	<style type="text/css">
			.nav a {
				border: 1px solid gray;
				padding: 2px;
			}
			.nav a:hover {
				text-decoration: overline;
			}
		</style>
    </head>
    <body>
        <div class="nav">	
		<a href="../">Controladores</a>
		<a href="../admin/mainPage">Perfil</a>
		<a href="../administrador/create">Cadastrar Administrador</a>
		<a href="../opinion/list">Opniões</a>
		</div>
        <div class="body">
            <h1><g:message code="default.list.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="list">
                <table>
                    <thead>
                        <tr>
                        
                            <g:sortableColumn property="id" title="${message(code: 'administrador.id.label', default: 'Id')}" />
                        
                            <g:sortableColumn property="nome" title="${message(code: 'administrador.nome.label', default: 'Nome')}" />
                        
                            <g:sortableColumn property="email" title="${message(code: 'administrador.email.label', default: 'Email')}" />
                        
                            <g:sortableColumn property="user" title="${message(code: 'administrador.user.label', default: 'User')}" />
                                                
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${administradorInstanceList}" status="i" var="administradorInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                            <td><g:link action="show" id="${administradorInstance.id}">${fieldValue(bean: administradorInstance, field: "id")}</g:link></td>
                        
                            <td>${fieldValue(bean: administradorInstance, field: "nome")}</td>
                        
                            <td>${fieldValue(bean: administradorInstance, field: "email")}</td>
                        
                            <td>${fieldValue(bean: administradorInstance, field: "user")}</td>
                        
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${administradorInstanceTotal}" />
            </div>
            
            
        	
        </div>
    </body>
</html>
